package com.bjfu.gmms.mapper;

import com.bjfu.gmms.pojo.SecondaryDisciplineStaticInfo;

import java.util.List;

public interface SecondaryDisciplineStaticInfoMapper {
    SecondaryDisciplineStaticInfo selectById(String secondaryDisciplineId);
    int insertSecondaryDisciplineStaticInfo(SecondaryDisciplineStaticInfo secondaryDisciplineStaticInfo);
    int updateSecondaryDisciplineStaticInfo(SecondaryDisciplineStaticInfo secondaryDisciplineStaticInfo);
    int deleteSecondaryDisciplineStaticInfo(String secondaryDisciplineId);

    // 查询学院下全部的二级学科
    List<SecondaryDisciplineStaticInfo> selectAllSecondaryDisciplineStaticInfoByCollegeId(String collegeId);

    // 根据一级学科查询所有的下属二级学科
    List<SecondaryDisciplineStaticInfo> selectAllSecondaryDisciplineStaticInfoByPrimaryDisciplineId(String primaryDisciplineId);

}

